Repository navigation
Knowledge search: a base tab or Search Code runs the typed words again there - #433
Merged
Merged
Conversation
…n there The tabs beside the built-in search only changed which bases the next press of Search would ask, and added to each other; "Search Code" in a base's panel closed the panel and did the same, so the results on screen never changed. Now a tab picks one base and runs what is typed (or the search on screen) again there, focus stays in the box after a click, the panel hands focus back to the box, the last answer stays on screen marked busy until the new one is in, and a slow answer for an earlier tab never replaces a later one.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
On the Knowledge page's built-in search, the base tabs (All, Code, Work, Infrastructure, Logs, Security, Knowledge) and "Search Code" in a base's panel changed nothing on screen: they only set which bases the next press of Search would ask, and the tabs added to each other. Now each picks one base and runs the typed words again there.
Changes
dashboard/src/components/knowledge/builtin.tsx: one base at a time (BuiltinKey | nullinstead of a list); a new base re-runs what is typed, or the search on screen; a click on a tab keeps focus in the box, a key press leaves it on the tab; the panel hands focus back to the box instead of the card (no 50 ms timer); the last answer stays on screen, markedaria-busy, until the new one is in, and its summary names where it was really searched; a slow answer for an earlier tab never replaces a later one.dashboard/e2e/knowledge-builtin.spec.ts: seven new tests (tab re-runs and keeps focus, Search Code in the panel, nothing typed, keyboard Tab/Space/Escape, no blanking while busy, a slow first tab, 390px width); the existing filter test no longer presses Search after a tab.Verification
npm run typecheck,npm run lint: clean.knowledge-builtin,knowledge,knowledge-page,list-and-palette,topbar,shell-menu,layout,no-mid-word-breaks,no-sideways-scroll,readable-text: 413 passed, 0 failed.